﻿/* 5. Write a boolean expression for finding if the bit 3 (counting from 0) of a given integer is 1 or 0. */

using System;

public class BitOnPosition
{
    public static void Main()
    {
        byte position = 3;
        Console.Write("The bit on position {0} of number = ", position);
        int number = int.Parse(Console.ReadLine());

        bool isOne = ((1 << position) | number) == number;
        Console.WriteLine( isOne ? "is 1." : "is 0.");
    }
}